package com.itheima.mall.service.oms;

import com.itheima.mall.api.oms.OrderSettingServiceApi;
import com.itheima.mall.pojo.oms.OrderSetting;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class OrderSettingService {
    @DubboReference
    private OrderSettingServiceApi orderSettingServiceApi;

    /**
     * 获取指定订单设置
     * @param id
     */
    public OrderSetting findById(Integer id) {
        OrderSetting orderSetting = orderSettingServiceApi.findById(id);
        return orderSetting;
    }

    /**
     * 修改指定订单设置
     * @param id
     * @param orderSetting
     */
    public void update(Integer id, OrderSetting orderSetting) {
        orderSettingServiceApi.update(id,orderSetting);
    }
}
